
#include <stdio.h>

void print_array(int n, int m, int a[n][m]);



int main(void) {
    int a[3][3] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
    static int b[4][3] = {1, 2, 3, 4, 0, 0, 5, 6};

    print_array(3, 3, a);
    printf("\n");
    print_array(4, 3, b);
}


void print_array(int n, int m, int a[n][m]) {
    int i, j;
    for (i = 0; i < n; i++) {
        for (j = 0; j < m; j++)
            printf("%d ", a[i][j]);
        printf("\n");
    }
}